home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 28
/
Aminet 28 (1998)(GTI - Schatztruhe)[!][Dec 1998].iso
/
Aminet
/
game
/
patch
/
jst.lha
/
jstsw_usr
/
Install
< prev
next >
Wrap
Text File
|
1998-09-23
|
2KB
|
78 lines
(set bin-dest
(askdir (prompt "Where would you like the binary files (JST, disk imagers) installed?\n"
"A drawer will NOT be created\n\nThe location should be in your path.")
(help @askdir-help)
(default "C:")
(newpath)
)
)
(if (exists "Work:" (noreq) )
(set @default-dest "Work:")
(if (exists "SYS:Work" (noreq) )
(set @default-dest "SYS:Work")
)
(set @default-dest "SYS:")
)
;ask the user to select a directory to install the other files
(set default-dest
(tackon (askdir (prompt "Where would you like the auxiliary files (docs,examples) installed?\n"
"A drawer called JST will be created.")
(help @askdir-help)
(default @default-dest)
(newpath)
)
"JST"
)
)
(set @default-dest default-dest)
;create the selected directory
(makedir @default-dest
(infos)
)
(set doc-dest (tackon @default-dest "docs"))
(makedir doc-dest
(infos)
)
(if (exists "sources" )
(
(set source-dest (tackon @default-dest "sources"))
(makedir source-dest
(infos)
)
(copyfiles (source "sources")
(dest source-dest)
(all)
)
)
)
(copyfiles (source "bin/")
(dest bin-dest)
(all)
)
(copyfiles (source "docs")
(dest doc-dest)
(all)
)
; cleanup
(delete (tackon bin-dest "README"))
(delete (tackon bin-dest "README.info"))